package com.lenovo.manufacture;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface Network {
    @FormUrlEncoded
    @POST("search")
    Call<LightingData> getLighting(@Field("isLighting") int i);

    @FormUrlEncoded
    @POST("updateAcSwitch")
    Call<AirConditionerData> getAirConditioner(@Field("id") int id, @Field("acSwitch") int k);

    @FormUrlEncoded
    @POST("UserFactory/getInfo")
    Call<FactoryData> getFactoryInfo(@FieldMap Map<String, Object> map);

    @POST("UserCarStore/getAll")
    Call<ProductData> getProductdata();

    @POST("CarType/getAll")
    Call<CarTypeData> getCarType();

    @POST("Person/getAll")
    Call<PersonnelData> getPersonnel();

    @POST("index/getMaterial")
    Call<SupplyListData> supplyList();

    @FormUrlEncoded
    @POST("index/addUserMaterialStore")
    Call<addMaterials> getaddMaterials(@Field("userLineId") int i,@Field("num") int n,@Field("supplyListId") int s);


}
